// 定义一个接口，用于描述简历的属性
interface IResume {
    //基本信息
    user: any;
    //个人优势
    advantage: any;
    //求职状态
    status: any;
    //期望
    desire: any;
    //工作经历
    experience: any;
    //项目经历
    project: any;
    //教育经历
    education: any;
    //作品
    works: any;
    //自定义
    custom: any;
}

// 定义一个类，用于表示简历
class Resume {
    private name: string;
    private age: number;
    private gender: string;
    private experience: string;
   
    
    constructor(name: string, age: number, gender: string, experience: string, education: string, skills: string[], projects: string[], contact: string) {
        this.name = name;
        this.age = age;
        this.gender = gender;
        this.experience = experience;
    }

    // 定义一个方法，用于设置简历的属性
    setResume(name: string, age: number, gender: string, experience: string, education: string, skills: string[], projects: string[], contact: string) {
        this.name = name;
        this.age = age;
        this.gender = gender;
        this.experience = experience;
    }

    // 定义一个方法，用于获取简历的属性
    getResume() {
        return {
            name: this.name,
            age: this.age,
            gender: this.gender,
            experience: this.experience,
        };
    }

    // 定义一个方法，用于打印简历
    printResume() {
        console.log(`Name: ${this.name}`);
        console.log(`Age: ${this.age}`);
    }
}

//定义一个函数，创建一份简历，并导出使用
export function createResume(name: string, age: number, gender: string, experience: string, education: string, skills: string[], projects: string[], contact: string): Resume {
    const resume = new Resume(name, age, gender, experience, education, skills, projects, contact);
    return resume;
}